﻿namespace CsharpTrainer.Model.Entities
{
    public class ContactInfo
    {
        public int ContactId { get; set; }
        public string Title { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Company { get; set; }

        public override string ToString()
        {
            string format = "Contact Id: {0}\nTitle: {1}\n"
                          + "FirstName: {2}\nLast Name: {3}\nCompany: {4}\n";

            return string.Format(format, ContactId, Title, FirstName, LastName, Company);
        }
    }
}
